home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 028a / managr02.zip / MANAGER.DOC < prev    next >
Text File  |  1992-01-22  |  23KB  |  444 lines

  1.                            NOTES ON MANAGER.COM 2.02
  2.  
  3.                                  Matt Roberts
  4.                                5 Cedar St., # 8
  5.                            Montpelier, Vt 05602-3006
  6.                                  (802)223-2553
  7.  
  8.                                    12-6-91
  9.  
  10. ───────────────────────────────────────────────────────────────────────────────
  11.  
  12. Note: The Manager was formerly the ASIC File Manager.  I've renamed it because 
  13. the term file manager doesn't really describe what I want it to do.  As time 
  14. goes by, I expect it to offer a number of features unrelated to files, such as 
  15. (hopefully) a calculator, an ASCII chart, the ability to send codes to the 
  16. printer (for italic, underline, bold, and whatnot) and all sorts of goodies 
  17. that don't have that much to do with files.
  18.  
  19.                                      BUGS
  20.  
  21. This section is reserved for bugs in the program.  At this time, I've managed 
  22. to solve all of the serious ones that were previously listed here.  The main 
  23. thing that's nagging me at the moment is in the File-listing utility; 
  24. subdirectories aren't labelled as such.  As a result, any file you see in the 
  25. list could theoretically be either a user file or a directory.  I've tried 
  26. everything I could think of, to no avail.  Looking at the document, I've 
  27. reached to the conclusion that I'll be able to solve the problem when and if I 
  28. learn how to access machine code from ASIC.  Unfortunately, this isn't likely 
  29. to happen for quite a while.  Since I need to fix this to use other parts of 
  30. the program more effectively, however, I'll be puzzling over it and I'll try 
  31. to solve that problem as soon as I can.
  32.  
  33. Because of the way I "organize" my work, some of the capabilities of version 
  34. 2.00 may not yet be documented.  I try to write them in so they're not too 
  35. difficult to understand, so you should be able to use them even if they're not 
  36. in here.  If that's not so, give me a call and I'll help you through as best I 
  37. can.
  38.  
  39. Finally, not all the error-handling routines have been written yet.  As a 
  40. result, you may be informed that the action has been carried out, even if it 
  41. hasn't.  If you ask The Manager to remove a directory, and that directory is 
  42. not empty (for instance), The Manager will return an error to the program.  
  43. Since there's nothing to deal with that error, it will go on to the next step, 
  44. which is to tell you that the directory has been removed, even though a 
  45. directory can't be removed if it has anything in it.  This will be corrected 
  46. in the future, but for now you're temporarily on your own as to checking for 
  47. correctly spelled pathnames, etc.  You might want to try creating errors in 
  48. certain options that don't always work quite right, to see if the error 
  49. routines have been plugged in yet.  I apologize for the hassle, and thank you 
  50. for your patience. 
  51.  
  52.                          
  53.                          SYSTEM REQUIREMENTS AND NOTES
  54.  
  55. The Manager was written using ASIC 3.01 by David Visti.  I find it excellent 
  56. for most purposes, and recommend it highly.  The author can be reached at P.O. 
  57. Box 2952, Raleigh, NC 27602-2952.  Registration is only $10.00, and I sent in 
  58. mine before the guy comes to his senses and starts charging what it's worth. 
  59.  
  60. The computer used was an Amstrad PC1512 SD.  This system has an 8086 
  61. 2
  62. processor, running at 8MHz (non-switchable).  It has 640K RAM, and 2Mb EMS.  
  63. The monitor/display card is a black and white composite monochrome/CGA.  It 
  64. has two 5.25", 360K floppy drives, and a 49Mb hard drive card.  1Mb of EMS has 
  65. been used to create an EMS disk (same as a RAM disk, but uses EMS).  The 
  66. Amstrad PC1512 has been discontinued.
  67.  
  68. You'll need approximately 130K of RAM to run The Manager.  It was 
  69. written under MS-DOS 3.20, but I suspect it will run under lower versions.  I 
  70. expect to be doing some testing in the future; I'll let you know whatever I 
  71. find out.  You'll also need the two files MANAGER.COM and SEEFILES.COM.  The 
  72. file-listing utility is in a separate file because it was the only way I could 
  73. fix a bug.  When it was part of the main program, shelling to DOS would result 
  74. in the file-listing utility being somehow corrupted.  I tried everything I 
  75. could think of, and finally decided that maybe if it was called from DOS 
  76. itself, the DOS shell wouldn't bother it.  Worked out fine, though I don't 
  77. know why (I make a lot of lucky guesses).  There are a couple of other files 
  78. you'll need, but I'll just make a complete list following:
  79.  
  80. AUTOEXEC.EXE
  81. CONFIG.EXE
  82. MANAGER.COM
  83. SEEFILES.COM
  84.  
  85. The Manager is primarily a mental exercise, although my ultimate goal is to 
  86. offer a program that can do just about everything you can do from DOS.  At the 
  87. moment, there are serious limitations, but there are also a few options that 
  88. are awfully handy to have, some of which aren't available from the DOS prompt 
  89. (as far as I know), and some which do the job in a friendlier or (once in a 
  90. great while) better way.  So, there's some solid value here, in my opinion.  
  91. If you agree, you're invited to send a $5.00 donation.  If you disagree, 
  92. you're still invited, although I suppose you won't be much inclined to accept 
  93. (sigh). 
  94.  
  95. The Manager doesn't have a very comprehensive selection of features at 
  96. present.  Since ASIC 2.00 and above has the ability to access machine 
  97. interrupts, more features can probably be developed, but I don't know how to 
  98. write machine code.  As a result, you may find this program a bit 
  99. disappointing.  However, it does have some uses, and certainly serves as a 
  100. demonstration of how to program with ASIC, since the source code is included. 
  101.  
  102. For some reason, I've become addicted to file managers.  I've already written 
  103. one for Locomotive BASIC 2 version 1.16, and I'm currently working on one for 
  104. GW-BASIC 3.22.  I'll also be writing a file manager for ApBASIC 1.7 at some 
  105. point in the near future, and possibly one using Powerbatch, a standard batch 
  106. file, and a compiled batch file.  Maybe one of the reasons I like writing file 
  107. managers is the amount I learn about the language, its capabilities and its 
  108. limitations.  Anyway, I may be offering others soon.
  109.  
  110. If you're having trouble using any of the programs on the disk, and the 
  111. documentation doesn't seem to help, you can call me between 9AM and 9PM EST, 
  112. and I'll do what I can to help.  I'm in and out during the day, so keep 
  113. trying.
  114.  
  115. In the program menu, you'll see selections that might look something like 
  116. this:
  117.  
  118. Alt-Fn- Selection.
  119.  
  120. To get that selection, you'll hold down the Alt key and, while still holding 
  121. the Alt key down, press the function key (or other key) indicated by Fn.  So, 
  122. 3
  123. if you see
  124.  
  125. Alt-F1- Do Your Laundry.
  126.  
  127. hold down the Alt key, and press the F1 key without letting go of Alt, and the 
  128. computer will do your laundry.  You may see another menu, from which you would 
  129. choose from such options as bleach, fabric softener, and the like.  Maybe my 
  130. friends are right; maybe I should get that brain scan after all.
  131.  
  132.  
  133.                                USING THE PROGRAM
  134.  
  135. You start by putting your disk in the drive and typing MANAGER at the DOS 
  136. prompt.  After a bit of foolishness, you get to the main options menu, which 
  137. invites you to delete files, make a directory, rename files, read today's date 
  138. and/or time, shell to DOS, blank your screen, quit, and a bunch of other neat 
  139. stuff you can't possibly live without.  You press the function key 
  140. corresponding to your choice, or the Esc key to return to DOS, and you're on 
  141. your way.  Isn't this exciting?  OK, so I'm easily amused. 
  142.  
  143.  
  144.                               LISTING DISK FILES
  145.  
  146. Operation is fairly simple; you just type in the directory in which you want 
  147. to view the files, giving the full DOS path.  The concept of a path is fairly 
  148. simple, and will be in your DOS manual.  If you don't get it the first time, 
  149. don't think you're a dummy; DOS manuals are written by Martians because the 
  150. labor is cheap.  Unfortunately, the little green guys haven't quite mastered 
  151. the art of English yet, and tend to make simple explanations a bit 
  152. complicated.  If you just can't figure out what a path is, give me a call and 
  153. I'll see what I can do to help.  Please have your DOS manual ready, and have 
  154. your telephone as near to the computer as possible, since it'll help if I can 
  155. run you through some simple exercises which involve making directories and 
  156. changing to them.  I'd appreciate it, though, if you'd give the DOS manual a 
  157. try first, and maybe your computer's technical support line second.  Thanks.
  158.  
  159. Anyway, once you've typed in the path and directory, you'll be treated to a 
  160. list of files.  This list will include directories, but I haven't figured out 
  161. a way to label them as such when they're printed on the screen.  I'm working 
  162. on it, though.  At the end of the list, you'll be invited to list some more 
  163. files; if you respond positively, you'll get to type in your path/directory 
  164. again.  Otherwise, you'll go back to the menu.
  165.  
  166. One important note: if you want to view the root directory of a drive, don't 
  167. type the backslash (\).  For instance, to view the files in the root directory 
  168. of drive A, you would type A: as your directory.  The backslash will be 
  169. supplied by The Manager.
  170.  
  171.  
  172.                                 DELETING FILES
  173.  
  174. This is fairly simple, and rather dangerous.  You're warned about the 
  175. possibility of losing files, and the impossibility of restoring them, and then 
  176. given the opportunity to quit.  If you decline this invitation, you're asked 
  177. which file you want obliterated.  You'll input the file you want decimated, 
  178. including the drive and path.  You are then warned again  (annoying, ain't 
  179. I?), and once again given the opportunity to get out of harm's way.  Pressing 
  180. any key except Esc will destroy the irreplaceable data in your chosen file.  
  181. You are next informed that the foregoing has occurred, and invited to make the 
  182. same mistake with a different file.  You really should make backups, you know.
  183.  
  184.  
  185. 4
  186.                               MAKING A DIRECTORY
  187.  
  188. Again, fairly simple.  This time, completely harmless.  The only limitation is 
  189. that each directory used takes up some disk space.  It is theoretically 
  190. possible to create so many directories you don't have room for any files.
  191.  
  192. You'll tell The Manager the directory you want created, including drive and 
  193. path.  You'll then be informed that the directory you wanted has been 
  194. delivered, and be given the opportunity to make another. 
  195.  
  196.  
  197.                                 RENAMING FILES
  198.  
  199. Have I mentioned that it's a good idea to make backups of all your files?  
  200. Here's another good reason.  Certain file extensions cannot be changed without 
  201. rendering them useless for their original purposes.  Files with an extension 
  202. of .BAT, .COM, .EXE, and other files shouldn't be messed with, unless you know 
  203. what you're doing.  Also, some programs use overlay files, and will not run if 
  204. they can't find what they're looking for.  Others read and write files with 
  205. specific extensions, and won't load them if they've been changed.
  206.  
  207. On the other hand, you can do almost anything you want (assuming it's legal, 
  208. moral, and physically possible) with a backup file.  The original is safe and 
  209. sound, and can replace the object of your experiments if things don't work out 
  210. as planned.  In fact, you might want some extra security by making a copy of 
  211. the copy, and keeping each "version" in a different location.  That way, 
  212. whatever befalls one won't be as likely to befall the others.
  213.  
  214. But I digress (constantly).  You'll first tell The Manager the name of the 
  215. file you want to change, including drive and path.  When prompted, you type in 
  216. the new name for the old file (if you write down both the old and new 
  217. filenames at this point, you can change them back if needful).  The Manager 
  218. does the dirty deed, and offers more of the same kind of fun. 
  219.  
  220. You can't change a name across drives.  For instance, you can't change 
  221. A:\TEST.DOC to B:\TEST.DOC.  Also, you'll need to use a full path for both the 
  222. original file and its new name.  As an example, if you want to change 
  223. A:\TEST.DOC to A:\TEST2.DOC, you'll need to specify A:\TEST2.DOC as the new 
  224. name.  You can't leave out the drive specifier, and you need to specify any 
  225. subdirectories A:\TEST.DOC might be in as well.
  226.  
  227.  
  228.                              GETTING THE DATE/TIME
  229.  
  230. Here you get the option of choosing to get just the date, just the time, or 
  231. both.  First you choose to Get Time/Date from the Main Menu, and then choose 
  232. which combination from another menu.  As you may have noticed, I like menus.  
  233. If the time and/or date on your computer haven't been set properly, you won't 
  234. get an accurate reading.  Assuming, however, that everything's the way it 
  235. ought to be, you should get what you're looking for (or a reasonable facsimile 
  236. thereof).
  237.  
  238.                                 SHELLING TO DOS
  239.  
  240. You press the key for the DOS shell.  You are prompted for the drive where 
  241. COMMAND.COM can be found.  You type in the letter, but not a colon (:).  You 
  242. are told to use the DOS command EXIT to return to The Manager.  You do all the 
  243. things I wish you could do with this program.  You type EXIT.  You see the 
  244. menu.  Are you having fun yet? 
  245.  
  246.  
  247. 5
  248.                              BLANKING YOUR SCREEN
  249.  
  250. If you press the key for this feature, your screen will go dark.  This will 
  251. help save your screen from burning "holes" (places where nothing can be 
  252. printed) on your monitor.  To return to the Options Menu, press any key.
  253.  
  254.  
  255.                          CHECKING FOR A GRAPHICS CARD
  256.  
  257. Does exactly what it says.  Checks for a graphics card, and tells you one way 
  258. or the other.  I don't know if it will recognize MGA (A.K.A. Hercules), but I 
  259. kind of doubt it.  If I get a chance to test it, I'll let you know.
  260.  
  261.  
  262.                           CHANGING TO 40-COLUMN MODE
  263.  
  264. I designed this feature to make it possible for the visually impaired to use 
  265. The Manager.  I assume the larger text makes it easier to read, but I don't 
  266. really know.  If you're visually impaired, and have suggestions on how to make 
  267. the screen writes more legible, I'd appreciate hearing from you.  I'm pretty 
  268. sure you need a graphics card to access this wider print mode.  I'll check 
  269. that out as soon as I can, but it may not be for a long time. 
  270.  
  271. There are certain options you can use from the 80-column mode that you can't 
  272. use from 40-columns.  For instance, since you need a graphics adapter (I 
  273. think) in order to get 40-column width, I figured it was silly to offer the 
  274. option that checks for a graphics adapter.  The file-reading option won't work 
  275. properly, since the file won't print properly on the screen.  Vern Buerg's 
  276. LIST.COM can deal with 40-column mode, because it reads the file into memory 
  277. where you can use the arrow keys to scroll sideways.  Unfortunately, I don't 
  278. have the skill to write a program that can do the same.  It's a goal of mine 
  279. to be able to do precisely that, but I think it'll be quite a while before I 
  280. figure out how to do it.  As soon as I do, though, I'll include it.  Anyway, 
  281. if you don't see an option in 40-column mode, it's probably because I couldn't 
  282. figure out how to write it so it would run properly, or because it wouldn't 
  283. make sense to offer it in the first place.  I'm the only one who can do much 
  284. about the former, but the latter is always open to discussion.  I don't 
  285. guarantee you'll convert me, but it won't do me any harm to listen to your 
  286. opinions.  So, opine to your heart's content, at the address on the first 
  287. page.
  288.  
  289.  
  290.                                 READING A FILE
  291.  
  292. This feature allows you to read a file on your screen.  It's very primitive, 
  293. and is essentially an extension of the DOS command TYPE and the DOS command 
  294. MORE.  The text file scrolls past your screen.  It'll stop at each screenful, 
  295. and invite you to press a key to continue.  You can also stop the scrolling by 
  296. pressing the space bar.  
  297.  
  298.  
  299.                                 PRINTING A FILE
  300.  
  301. This one is like the file-reading routine, except you're printing (surprise).  
  302. You press the space bar to pause printing.  There will still be data in the 
  303. printer's buffer, and I don't know a way to flush that without losing the 
  304. place in the file, so you'll have to take the system off-line if you need to 
  305. stop in a hurry.  If you're not in a rush, though, it'll stop printing when 
  306. the data in its buffer is printed.  Press any key to continue printing.  When 
  307. you press the space bar to pause, there will probably be a few seconds delay 
  308. 6
  309. before it can process the keypress.  That's because it processes the text file 
  310. one line at a time, and it can't get to processing your keypress until it's 
  311. finished with the line it's working on.  It won't increase the amount printed, 
  312. except by that one line.  Don't press the space bar again, because The Manager 
  313. will process both keypresses, in order, and will assume you want to continue 
  314. printing. 
  315.  
  316. You can quit printing by pressing the Esc key.  Again, it will probably take a 
  317. second or two for The Manager to finish with the line it was working at the 
  318. time, and get to your keypress.  The amount printed will only be increased by 
  319. that one line, and you'll be sent back to the menu shortly.  If you press Esc 
  320. twice, The Manager will process both Esc key presses, first sending you back 
  321. to the menu, and then sending you back to DOS. 
  322.  
  323.  
  324.                                   PARAMETERS
  325.  
  326. Using parameters from the DOS prompt can save you time, bypassing the intro 
  327. screens, taking you directly to the module where the work you want to do 
  328. resides and, for simple jobs, doing that bit of work automatically.  You can 
  329. see a list from the menu, which looks remarkably similar to the one listed 
  330. following.  Here's the list of the parameters you can currently use.
  331.  
  332. Typing MANAGER /? will let you view screens which contain this same 
  333. information.  The command for 40-column mode is MANAGER /40 ?
  334.  
  335. Typing MANAGER /R will let you see my address, so you can send any donations 
  336. in the event you are so moved.  In 40-column mode, it's MANAGER /40 R.
  337.  
  338. Typing MANAGER /S will supposedly let you see a list of disk files.  To list 
  339. files with the wide text option, type MANAGER /40 S.
  340.  
  341. Typing MANAGER /D lets you delete files.  Make backups.  The 40-column 
  342. version is MANAGER /40 D.
  343.  
  344. Typing MANAGER /M moves you to the directory-making module.  In 40-columns, 
  345. MANAGER /40 M.
  346.  
  347. Typing MANAGER /N moves you to the module for renaming files.  Make backups.  
  348. 40-column users, type MANAGER /40 N.
  349.  
  350. Typing MANAGER /G lets you view the time and/or date.  MANAGER /40 G in 40-
  351. column mode.
  352.  
  353. Typing MANAGER /B lets you blank your screen.  MANAGER /40 B in 40-column 
  354. width.
  355.  
  356. Typing MANAGER /P lets you check for a graphics adapter.
  357.  
  358. Typing MANAGER /V will let you use the file-reading feature.
  359.  
  360. Typing MANAGER /L calls the file-printing routine.  For 40-column users, the 
  361. command is MANAGER /40 L.
  362.  
  363. Typing MANAGER /40 will put you in 40-column mode, provided you have a 
  364. graphics adapter, and give you the 40-column menu.
  365.  
  366.  
  367. In each case, either upper- or lower-case should be fine.  If it isn't, I 
  368. goofed, and I'd appreciate it if you'd let me know so I can ungoof.  Thanks.
  369.  
  370.  
  371. 7
  372.                              WRITE-PROTECTED DISKS
  373.  
  374. If you try to delete files, make directories, or rename files on a disk that's 
  375. write-protected, DOS will interrupt The Manager with a Write-Protect Error.  
  376. You are given the usual opportunities to Abort, Retry, Ignore.  If you wish, 
  377. you can remove the write-protect tape or move the write-protect tab (depending 
  378. on your type of disk), or put an unprotected disk in that drive, and try 
  379. again.  If you choose Abort, you'll be returned to DOS.  As far as I know, I 
  380. have no control over that.  If I figure a way to get out of leaving the 
  381. program in case of an Abort, I'll write it into The Manager.
  382.  
  383. Please bear in mind, should you get that type of error, that a disk is usually 
  384. write-protected (whether by you or someone else) for good reason.  I would 
  385. advise you to think twice about unprotecting the disk.  Since there are no 
  386. restrictions on reading from a protected disk, you might want to consider 
  387. making a copy of that disk, and doing what you want on the copy.  That way you 
  388. get to manipulate the files to your heart's content, without damaging the 
  389. protected disk.
  390.  
  391.  
  392.                                 ERROR ROUTINES
  393.  
  394. There are a number of error routines in The Manager in case you should attempt 
  395. to do something either the program or DOS can't do.  I've designed these so 
  396. that, should you start typing in a correction and then decide to quit, you can 
  397. press Esc at any time.  It was a little on the tricky side for me to code; I 
  398. spent a long time testing, but I may not have caught all the bugs.  As always, 
  399. let me know if I missed anything. 
  400.  
  401.  
  402.  
  403.                                  IN CONCLUSION
  404.  
  405. ASIC is still being modified, and I expect more features to be available to 
  406. such cement-headed programmers as myself.  When this occurs, MANAGER.COM will 
  407. undoubtedly flesh out a bit.  You shouldn't think of this program as 
  408. representative of ASIC's capabilities; I've written a number of utilities, for 
  409. instance, which saved me the price of the registration many times over.  In 
  410. addition, I'm still a novice programmer, though I expect to graduate to 
  411. beginner some time soon.  More experienced programmers will find the 
  412. facilities (BLOAD, PEEK, POKE, etc.) to really make your programs sit up and 
  413. take notice.  I don't know how to use any of the advanced commands, so don't 
  414. judge the compiler by the programs I've written. 
  415.  
  416. Your comments, questions, and criticisms would be greatly appreciated, 
  417. including correcting my grammar, spelling, etc.  My goal is to write quality 
  418. software, and I need your help to do it.  Thanks.
  419.  
  420.  
  421.                                      TESTS
  422.  
  423. Version numbers exist for the purpose of testing this disk's utilities on 
  424. other computers.  Version 1.00 has been tested on the following:
  425.  
  426. Amstrad PC1512 SD: This system has an 8086 CPU, a composite monochrome 
  427. monitor, and CGA which can access 16 shades of gray (or color with a color 
  428. monitor) with a resolution of up to 640 X 200.  The system originally came 
  429. with 512K RAM, which I've upgraded to 640K.  I've also added a 2 Mb EMS card.  
  430. It came with a single 5.25", 360K drive.  A second internal drive of the same 
  431. type was later added, and I've installed a 49Mb hard disk card.  Operating 
  432. 8
  433. system is MS-DOS 3.20.  This line has been discontinued.  The Manager had no 
  434. problems running on the Amstrad. 
  435.  
  436.  
  437. Packard Bell Pack-Mate: This system has an 80286 CPU and a color VGA monitor.  
  438. There's 640K RAM, and 384K Extended Memory.  Drives are one 40Mb internal hard 
  439. disk, one 5.25", 1.2Mb drive, and one 3.5", 1.44 Mb drive.  Operating system 
  440. is MS-DOS 3.30.  FILE-MAN 1.00 had no problems running on the Packard Bell. 
  441.  
  442. Version 2.00 has not been tested on any systems other than the Amstrad, where 
  443. it showed no problems.
  444.